const express = require('express');
const router = express.Router();
const { sendResponse } = require('@/utils/tool')

/**
 * @swagger
 * /example:
 *   get:
 *     tags:
 *       - 测试接口
 *     summary: 获取示例数据
 *     description: 获取一个示例数据
 *     responses:
 *       200:
 *         $ref: '#/components/responses/success'
 */
router.get('/example', (req, res) => {
  // 实现获取用户的逻辑
  sendResponse(req, res,{
    data: '这是一条测试数据'
  })
});


module.exports = router;